package ioc;

/**
 * @program: spring-demo1
 * @author: JCM
 * @create: 2023-02-20 21:33
 * @description:
 **/
public class Car {
    private Framework framework;
    public Car(Framework framework) {
        this.framework = framework;
    }

    public void init() {
        System.out.println("执行了 car 的 init 方法");
        framework.init();
    }

}
